package com.atguigu.test.po;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author zp
 * @version 1.0
 * @description: 测试AutowiredAnnotationBean后置处理器的对象
 * @date 2022/12/15 20:23
 */
@Slf4j
public class AutowiredAnnotationBean {
    private String home;


    public String getHome() {
        return home;
    }

    @Autowired
    public void setHone(@Value("${JAVA_HOME}") String home) {
        log.info("Autowired 生效了");
        log.info("Value 生效了");
        log.info("注入的值：[{}]",home);
        this.home = home;
    }

    public void setHome(String home) {
        this.home = home;
    }
}
